package com.ea.admin.service;

import com.ea.admin.pojo.vo.account.ContactAdminVo;
import com.ea.admin.pojo.vo.department.DepartmentVo;

import java.util.List;

public interface DepartmentService {
    List<DepartmentVo> getDepartmentList(List<Long> companyIdList, Long accountId);

    Long addDepartment(String deptName, Long supDeptId, Long companyId, Long accountId, Long deptContactAccountId, String deptContactName, String deptContactPhoneNum, String deptContactUsername, String deptContactPassword, String deptContactRePassword);

    void editDepartment(Long deptId, String deptName, Long supDeptId, Long deptContactId, Long accountId);

    void deleteDepartment(Long deptId, Long accountId);

    List<ContactAdminVo> searchContact(Long accountId, Long companyId, String contactName);

    Integer getTotalCount(List<Long> queryDeptIdList);
}
